<template>
	<view class="content">
		
		<img class="logo" src="/static/images/login/logo.png" />
			<button :disabled="user"  class="btn" @click="login()">一键微信登录(注册)</button>
			<view class="text">
				<radio @click="checkbtn"></radio>我已阅读并同意
				<text class="red">《软件使用许可协议》《隐私协议》</text>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user:true
			}
		},
		methods: {
			checkbtn(){
				this.user = false
			},
			login() {
				//tab  switchTab
				//非tab   

				uni.navigateTo({
					url: '/pages/buynow/buynow'
				})
			}
		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 40rpx;
	}
	.logo {
		width: 100px;
		height: 100px;
		margin-top: 100rpx;
	}

	.btn {
		width: 500rpx;
		height: 30px;
		margin: 0 auto;
		color: #fff;
		background-color: red;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 20rpx;
		margin-top: 100rpx;
		padding: 20px 0px;
	}

	.text {
		position: absolute;
		bottom: 30px;
	}

	.red {
		color: red;
	}
</style>